package org.example.rabbitMq.listener;


import org.example.po.Mail;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class DircetListenetProple3 {


    @RabbitListener(queues = "myDirectQueue3")
    public void displayMail(Mail mail) {
        System.out.println("消费者3收到消息  :"+ mail.toString());
    }


}
